<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>		
	<?php Yii::app()->clientScript->registerMetaTag('text/html; charset=utf-8', null, null, array('http-equiv' => 'Content-Type')); ?>			
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/reset.css', 'screen'); ?>	
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/bootstrap.min.css', 'screen'); ?>	
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/prettyPhoto.css', 'screen'); ?>
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/jquery.rating.css', 'screen'); ?>		
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/rcarousel.css', 'screen'); ?>  
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery-autocomplete/jquery.autocomplete.css', 'screen'); ?>			
	<?php //Yii::app()->clientScript->registerCssFile(Yii::app()->theme->baseUrl . '/css/style.css', 'screen'); ?>	
	<?php
	Yii::app()->minify->processCss(array(
	    Yii::app()->theme->baseUrl . '/css/all.css' => array(
		Yii::app()->theme->baseUrl . '/css/reset.css',
		Yii::app()->theme->baseUrl . '/css/bootstrap.min.css',
		Yii::app()->theme->baseUrl . '/css/prettyPhoto.css',
		Yii::app()->theme->baseUrl . '/css/jquery.rating.css',
		Yii::app()->theme->baseUrl . '/css/rcarousel.css',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery-autocomplete/jquery.autocomplete.css',
		Yii::app()->theme->baseUrl . '/css/style.css',
	    ),
	));
	?>
	<?php Yii::app()->clientScript->registerScriptFile('http://maps.googleapis.com/maps/api/js?sensor=false'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery-1.6.4.min.js'); ?>    	
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.jgrowl.js'); ?>  	
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.autocomplete.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.prettyPhoto.js'); ?>        
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.rating.min.js'); ?>     
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.bxSlider.min.js'); ?>   
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.form.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.scrollTo-min.js'); ?>  	
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/jquery.validate.min.js'); ?>	
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery/messages_ru.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/auth.js'); ?>	
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/functions.js'); ?>		
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/classes/map.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/classes/features.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/classes/vote.js'); ?>
	<?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/scripts.js'); ?>	
	<?php
	Yii::app()->minify->processJs(array(
	    Yii::app()->theme->baseUrl . '/js/all.js' => array(
		Yii::app()->theme->baseUrl . '/js/jquery/jquery-1.6.4.min.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.jgrowl.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.autocomplete.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.prettyPhoto.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.rating.min.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.bxSlider.min.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.form.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.scrollTo-min.js',
		Yii::app()->theme->baseUrl . '/js/jquery/jquery.validate.min.js',
		Yii::app()->theme->baseUrl . '/js/jquery/messages_ru.js',
		Yii::app()->theme->baseUrl . '/js/auth.js',
		Yii::app()->theme->baseUrl . '/js/functions.js',
		Yii::app()->theme->baseUrl . '/js/classes/map.js',
		Yii::app()->theme->baseUrl . '/js/classes/features.js',
		Yii::app()->theme->baseUrl . '/js/classes/vote.js',
		Yii::app()->theme->baseUrl . '/js/scripts.js',
	    ),
	));
	?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>	
	<div class="headWrapper wrappers">
	    <?php echo $this->renderPartial('webroot.themes.' . Yii::app()->theme->name . '.views.partials.header-menu'); ?>	
	</div>
	<div class="contentWrapper wrappers">
	    <div class="clear"></div>
	    <div class="padTop20"></div>
	    <?php if (isset($this->breadcrumbs)) : ?>
    	    <div class="padLeft20">
		    <?php $this->widget('zii.widgets.CBreadcrumbs', array('links' => $this->breadcrumbs, 'separator' => ' &#8594; ', 'homeLink' => '<a href="/">Главная</a>')); ?>
    	    </div>
    	    <div class="padTop20"></div>
	    <?php endif; ?>
	    <div class="content">
		<?php echo $this->renderPartial('webroot.themes.' . Yii::app()->theme->name . '.views.partials.flash-messages'); ?>
		<?php echo $content; ?>		
	    </div>
	</div>
	<div class="padTop40"></div>
	<div class="footerWrapper wrappers">
	    <?php echo $this->renderPartial('webroot.themes.' . Yii::app()->theme->name . '.views.partials.footer-menu'); ?>		    
	</div>	
	<div id="overlay"></div>
	<div class="popUps radius5">
	    <?php echo $this->renderPartial('webroot.themes.' . Yii::app()->theme->name . '.views.partials.popups'); ?>
	</div>
    </body>
</html>